﻿using System;
using DevTools.AndroidLayoutHelper;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace DevTools.Test
{
    [TestClass]
    public class LayoutReaderTest
    {
        [TestMethod]
        public void ReadTest()
        {
            const string template1 = @"#region declare widgets
            <% private {0} {1}; %>
            #endregion";

            const string template2 = @"#region find widgets
            <% {1} = FindViewById<{0}>(Resource.Id.{1}); %>
            #endregion";

            string result1, result2;

            LayoutReader.Read(@"D:\Projects\MbtiTest\MbtiTest\Resources\Layout\Main.axml", null, template1, template2, out result1, out result2);
        }
    }
}
